/**
 * Meituan.com Inc.
 * Copyright (c) 2010-2019 All Rights Reserved.
 */
package set;

import java.util.HashSet;
import java.util.TreeSet;

/**
 * <p></p>
 *
 * @author tuyou@meituan.com
 * @version v0.1 2019-03-03 10:27 PM tuyou Exp $$
 */
public class HashSetTest {
    public static void main(String[] args) {
        HashSet<Integer> hashSet = new HashSet<>();
        hashSet.add(3);
        hashSet.add(2);
        hashSet.add(1);
        System.out.println(hashSet);


        TreeSet<Integer> treeSet = new TreeSet<>();
        treeSet.add(3);
        treeSet.add(2);
        treeSet.add(1);
        System.out.println(treeSet);
    }
}